//
//  HQMapInitOptionsModel.m
//  o_amap
//
//  Created by Q神 on 2021/4/20.
//

#import "HQMapInitOptionsModel.h"

@implementation HQMapInitOptionsModel

- (void)setParamsWithMapView:(MAMapView *)mapView {
    mapView.mapType = self.mapType;
    mapView.showsScale = self.scaleControlsEnabled;
    mapView.zoomEnabled = self.zoomControlsEnabled;
    mapView.showsCompass = self.compassEnabled;
    mapView.scrollEnabled = self.scrollGesturesEnabled;
    mapView.rotateEnabled = self.rotateGesturesEnabled;
    mapView.zoomLevel = self.camera.zoom;
    mapView.showsUserLocation = self.showsUserLocation;
    mapView.userTrackingMode = self.userTrackingMode;
    mapView.centerCoordinate = CLLocationCoordinate2DMake([self.camera.target.latitude doubleValue],
                                                          [self.camera.target.longitude doubleValue]);
}

@end


@implementation CameraModel

@end
